#ifndef LOGIN_H
#define LOGIN_H

#include <QDialog>

#include "register.h"
#include "Protocol/msgheader.h"

namespace Ui {
    class Login;
}

class Login : public QDialog
{
    Q_OBJECT

public:
    explicit Login(QWidget *parent = 0);
    ~Login();

signals:
    void showGUI();
    void loginRequest(QByteArray package);
    void transferUserList(MSGHeader header,QByteArray data);

public slots:
    void processLoginResponse(MSGHeader header,QByteArray data);

private:
    Ui::Login *ui;

private slots:
    void on_m_lbRegister_linkActivated(QString link);
    void on_m_pbCancel_clicked();
    void on_m_pbLogin_clicked();
};

#endif // LOGIN_H
